home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / DJDEV203.ZIP / include / mntent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-13  |  1011 b   |  50 lines

  1. /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
  2. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  3. #ifndef __dj_include_mntent_h_
  4. #define __dj_include_mntent_h_
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  11.  
  12. #ifndef __STRICT_ANSI__
  13.  
  14. #ifndef _POSIX_SOURCE
  15.  
  16. #include <stdio.h>
  17.  
  18. #define    MNT_MNTTAB    "/etc/mnttab"
  19.  
  20. struct mntent
  21. {
  22.   char *mnt_fsname;
  23.   char *mnt_dir;
  24.   char *mnt_type;
  25.   char *mnt_opts;
  26.   int  mnt_freq;
  27.   int  mnt_passno;
  28.   long mnt_time;
  29. };
  30.  
  31. extern FILE        *setmntent(const char *, const char *);
  32. extern struct mntent    *getmntent(FILE *);
  33. extern int        addmntent(FILE *, const struct mntent *);
  34. extern char        *hasmntopt(const struct mntent *, const char *);
  35. extern int        endmntent(FILE *);
  36.  
  37.  
  38. #endif /* !_POSIX_SOURCE */
  39. #endif /* !__STRICT_ANSI__ */
  40. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  41.  
  42. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  43. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif /* !__dj_include_mntent_h_ */
  50.